package com.retailcloud.inventoryservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.retailcloud.commonutils.dto.UserDTO;
import com.retailcloud.commonutils.utils.PageUtils;
import com.retailcloud.inventoryservice.entity.ProductCategoryEntity;

import java.util.Map;

/**
 * 商品分类表
 *
 * @author wudi
 * @email 632132852@qq.com
 * @date 2024-11-05 21:41:03
 */
public interface ProductCategoryService extends IService<ProductCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveCategory(ProductCategoryEntity productCategory);

    /**
     * 根据ID获取分类详情
     * 
     * @param id 分类ID
     * @return 分类详情
     */
    ProductCategoryEntity getCategoryById(Long id);

    void updateCategory(ProductCategoryEntity productCategory);

    void deleteCategories(Long[] ids);

}
